import 'package:ls_work/net/api/http_api.dart';
import 'package:base_flutter/base_flutter.dart';
mixin UserButonRoleMixin{

  dynamic buttonRoleMap() async {
    var url = "${HttpApi.baseUrl}getMyButtonRole";
    var data = await HttpGo.instance.postData(url);
    if("0"==data['code']){
      return data['data'];
    }else{
      throw data['msg'];
    }
  }

}